package actualizador.datagramExample;

import java.io.IOException;
import java.net.SocketException;
import java.net.UnknownHostException;

public class Servidor {

	public static void main(String[] args) {
		//String ipServidor= "10.12.9.60"; 
		String ipCliente= "10.12.9.72", msg;

		DatagramaEjemplo dt= new DatagramaEjemplo();

		try {
			msg= dt.recibirMensaje();

			System.out.println("Este es el msg: "+msg);

			dt.enviarMensaje(ipCliente, "chauuuuuuu");
		} catch (UnknownHostException e) {
			e.printStackTrace();
		} catch (SocketException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		}
	}

}
